import { EggPlugin } from 'egg';

const plugin: EggPlugin = {
  // static: true,
  // nunjucks: {
  //   enable: true,
  //   package: 'egg-view-nunjucks',
  // },
  //egg.js非常的灵活，插件是可插拔的
  mysql: {
    enable: true,
    package: 'egg-mysql'
  },
  passport: {
    enable: true,
    package: 'egg-passport'
  },
  passportLocal: {
    enable: true,
    package: 'egg-passport-local'
  }
  //app.passport
};
//session jwt 讲过了

export default plugin;
